Repository navigation
Name the load cause when a module manifest is rejected - #299
Merged
Merged
Conversation
…hetype Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
schema and the other module-loading commands reported a bare UnknownArchetype when a module loaded with a rejected manifest. A shared check now fails with the recorded reason and manifest path. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Narrow the change to the schema command: it reports the recorded load failure for the requested archetype, whether or not other archetypes load. Shared loaders and validate are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
quire schema FR --module <dir>on a module whose manifest the engine rejects (spec-artifacts-iso v0.24.0:semantic:block carriessemantic_core) printed a bareUnknownArchetype: 'FR' is not registered, exit 3. The tolerant load keeps the module name with zero archetypes and records the cause only inRegistry::failures().Change
semantic:key, a missingfrontmatter_schema_ref) is reported with its cause whether the module's other archetypes load or none do. An undeclared name still reportsUnknownArchetype.schema(src/commands/schema.rs): when the contract lookup fails, it looks inregistry.failures()for an entry for the requested archetype and fails withmodule load failed: <reason> (<manifest path>); otherwise it keeps the original error.schema. The shared loaders andvalidateare unchanged, so no other command's load behaviour moves.it_064_schema_reports_rejected_manifest_cause(all archetypes rejected) andit_065_schema_reports_one_rejected_archetype_among_loaded(BAD names the cause and path, FR still loads, an undeclared name still givesUnknownArchetype). Both build the broken module at test time.Module side (spec-artifacts-iso)
Cause of the v0.24.0 failure: the
semantic.semantic_corekey, removed in v0.25.0 (deleting that line from the 0.24.0 manifest loads it). npm latest 0.29.0 loads with current quire 0.53.5 (quire schema FR --module <npm pack dir>exits 0); it prints twoUnknownEdgeType soup_requirement_foradvisories by design (declared in spec-objects-security). No module PR needed.Criteria and checks
Criteria: FR-009-AC-6. Focused tests:
cli_schema,cli_lint,cli_validatepass; clippy-D warningson the touched tests clean.🤖 Generated with Claude Code